package com.ynu.appuser.domain.appuser;

import com.ynu.appuser.domain.physical.PhysicalDataEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * App用户对象 md_user
 *
 * @author TangZheng
 * @date 2022-12-02
 */
public class MdUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Excel(name = "id")
    private Long id;

    /**
     * 用户名
     */
    @Excel(name = "用户名")
    private String username;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String password;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    private String realName;
    private String nickName;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phoneNumber;

    private PhysicalDataEntity physicalData;

    public PhysicalDataEntity getPhysicalData() {
        return physicalData;
    }

    public void setPhysicalData(PhysicalDataEntity physicalData) {
        this.physicalData = physicalData;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRealName() {
        return realName;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("password", getPassword())
                .append("realName", getRealName())
                .append("phoneNumber", getPhoneNumber())
                .append("createTime", getCreateTime())
                .toString();
    }
}
